Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qual tool: Print more useful log messages when failures happen downloading dependencies #1292

Merged
merged 4 commits into from
Aug 19, 2024

Conversation

tgravescs
Copy link
Collaborator

@tgravescs tgravescs commented Aug 15, 2024

contributes to #1286

Adds in some specific error handling and logging to help with errors downloading jars or not having access to external internet. This is specifically handling a few cases mentioned in the issue.

Tested by making the mvn url go to an invalid host.

Signed-off-by: Thomas Graves <tgraves@nvidia.com>
@tgravescs tgravescs added the bug Something isn't working label Aug 15, 2024
@tgravescs tgravescs self-assigned this Aug 15, 2024
@@ -387,14 +391,22 @@ class RapidsJarTool(RapidsTool):
"""

def _process_jar_arg(self):
jar_path = ''
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems redundant because the exception is re-raised if the jars are not downloaded successfully.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you clarify what you think is redundant here? Just the setting of jar_path? the main additions in this are the messages being printed not the exception stacks

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I meant we can remove setting the jar_path explicitly here. Sorry, it wasn't clear in my last comment.

@cindyyuanjiang cindyyuanjiang self-requested a review August 17, 2024 00:02
@tgravescs tgravescs merged commit 820fb25 into NVIDIA:dev Aug 19, 2024
14 checks passed
@tgravescs tgravescs deleted the pythonerrorhandling branch August 19, 2024 13:12
@parthosa parthosa added the user_tools Scope the wrapper module running CSP, QualX, and reports (python) label Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working user_tools Scope the wrapper module running CSP, QualX, and reports (python)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants